package com.smartview.jboss.spring.model;

import java.util.LinkedList;
import java.util.List;

import org.springframework.stereotype.Service;

/**
 * Hold everything that you want to put into the shopping cart
 * @author liu
 *
 */
@Service
public class ShoppingCart {
	// You can have a lot of data here
	private List<String> list;
	
	// You can define a lot of methods to handle your data
	public void init() {
		list = new LinkedList<String>();
	}
	
	public void add(String item) {
		list.add(item);
	}
	
	public List<String> getItems() {
		return list;
	}
}
